package mvc.view;

import mvc.controller.Enemy;
import processing.core.PApplet;

/**
 * Defines a butterfly, the middle section of the Galaga formation
 *
 * @author Christopher Glasz
 */
public class Butterfly extends Enemy {

    /**
     * Constructor initializes variables
     *
     * @param x
     *            x coordinate
     * @param y
     *            y coordinate
     * @param entryPath
     *            path to take on entry
     */
    public Butterfly(float x, float y, FlightPath entryPath) {
        super(x, y, entryPath);
        formationScore = 80;
        attackingScore = 160;
    }

    /**
     * Constructor initializes variables
     *
     * @param x
     *            x coordinate
     * @param y
     *            y coordinate
     * @param goalX
     *            the starting destination
     * @param goalY
     *            the starting destination
     * @param entryPath
     *            path to take on entry
     */
    public Butterfly(float x, float y, float goalX, float goalY,
                     FlightPath entryPath) {
        super(x, y, goalX, goalY, entryPath);
        formationScore = 80;
        attackingScore = 160;
    }

    @Override
    public void update(float elapsed) {
        super.update(elapsed);
    }

    @Override
    public Enemy clone() {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    protected void createSprite() {
        super.createSprite();
        sprite1 = (new PApplet()).loadImage("Sprites/butterfly.png");
        sprite2 = (new PApplet()).loadImage("Sprites/butterfly2.png");
    }

}
